import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../base/entity/base";

@Entity('product_category')
export class ProductCategoryEntity extends BaseEntity {

    @Column({ comment: '分类名称' })
    name: string;

    @Column({ comment: '父分类ID', nullable: true })
    parentId: number
}